<!-- Top navigation bar -->
<div id="topNav">
{% block topNav %}
    <div class="fixed">
        <div class="wrapper">
            <div class="welcome"><a href="#" title=""><img src="{{asset('uploads/images/users/')}}{{app.user.file}}" alt="" width="22px" height="20px" /></a><span>
             {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                {{ 'layout.greeting'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} 
            {% else %}
                <a href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans({}, 'FOSUserBundle') }}</a>
            {% endif %}   
             </span></div>
            <div class="userNav">
                <ul>
                    <li><a href="{{ path('em_profile') }}" title=""><img src="{{asset('bundles/news/images/icons/topnav/profile.png')}}" alt="" /><span>Profile</span></a></li>
                    <li><a href="#" title=""><img src="{{asset('bundles/news/images/icons/topnav/settings.png')}}" alt="" /><span>Settings</span></a></li>
                    <li><a href="{{ path('fos_user_security_logout') }}" title=""><img src="{{asset('bundles/news/images/icons/topnav/logout.png')}}" alt="" /><span>{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}</span></a></li>
                </ul>
            </div>
            <div class="fix"></div>
        </div>
    </div>
{% endblock%}
</div>
<!-- end Top navigation bar -->